package com.zbzly.solon;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.boot.http.HttpServerConfigure;

@SolonMain
public class App {
    public static void main(String[] args) {
        Solon.start(App.class, args,app->{
            app.onEvent(HttpServerConfigure.class, e -> {
                e.enableHttp2(true); //开启 http_2
            });
        });
//        Solon.start(App.class,args);
    }
}